package com.mapper;

import com.beans.Comment;
import com.vo.CommentVo;
import com.vo.ForumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {

    int countCommentByForumId(@Param("entity")ForumVo forum);

    List<CommentVo> listByForumId(@Param("id")int id);

    int addComment(@Param("entity") Comment comment);

    int deleteComment(@Param("id")int id);

    List<CommentVo> getAllComment();


}
